package org.laot.searchManage.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.laot.seacher_master.model.common.PageRequest;
import org.laot.searchManage.dto.DatasourceApplicationApproveDto;
import org.laot.searchManage.dto.DatasourceApplicationCommitDto;
import org.laot.searchManage.entry.DatasourceApplication;
import com.baomidou.mybatisplus.extension.service.IService;
import org.laot.searchManage.vo.DatasourceApplicationPageVo;

/**
* @author laoT
* @description 针对表【datasource_application(数据源申请单)】的数据库操作Service
* @createDate 2024-01-24 22:08:30
*/
public interface IDatasourceApplicationService extends IService<DatasourceApplication> {

    /**
     * 提交数据源申请单
     * @param dto 传入参数
     */
    void commit(DatasourceApplicationCommitDto dto);

    /**
     * 审批数据源申请单
     * @param datasourceApplicationApproveDto 审批传入数据
     * @param userName 当前用户名
     */
    void approve(DatasourceApplicationApproveDto datasourceApplicationApproveDto, String userName);

    /**
     * 页面查询
     * @param pageRequest 查询条件
     * @return 页面数据
     */
    Page<DatasourceApplicationPageVo> pageInfo(PageRequest pageRequest);
}
